/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.admin.model;

import com.entities.EventInfo;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Tuan Long
 */
@Local
public interface EventInfoFacadeLocal {

    void create(EventInfo eventInfo);

    void edit(EventInfo eventInfo);

    void remove(EventInfo eventInfo);

    EventInfo find(Object id);

    List<EventInfo> findAll();

    List<EventInfo> findRange(int[] range);

    int count();

    boolean createNewEvent(String name, String des, String type, Date timeS, Date timeE, String avatar, String shortdes, String address);

    EventInfo getEventInfoByEventId(int eventId);

    boolean updateEvent(int eventId, String name, String des, String type, Date start, Date end, String avatar, String shortdes, String address);
    
}
